const express = require('express');
// 创建一个goodsRouter
const goodsRouter = express.Router();


// 商品列表   GET  /goodslist
// 添加商品   GET  /goodsadd
// 商品详情   GET  /goodsdetail
goodsRouter.get('/goodslist',(request,response)=>{
    response.send('<h1>商品列表页</h1>');
})
goodsRouter.get('/goodsadd',(request,response)=>{
    response.send('<h1>添加商品页</h1>');
})
goodsRouter.get('/goodsdetail',(request,response)=>{
    response.send('<h1>商品详情页</h1>');
})

module.exports = goodsRouter;